package com.example.picturestorage.test;

public class TTT {
    public TTT(){
        System.out.println(111);
    }

    public static void main(String[] args) {
        TTT ttt=new TTT();
        System.out.println(f(6));
        f2(1);
    }

    public static int f(int n){
        if(n==1)
            return 1;
        else
            return n*f(n-1);
    }

    public static void f2(int i){
        i++;
        System.out.println(i);
        try {

            f2(i);
        }catch (Throwable e){
            System.out.println("栈深度: "+i);
        }
    }
}
